<style type="text/css">@import url("include/javascript/jquery/css/ui-lightness/jquery-ui-1.8.11.custom.css"); </style>
<script type="text/javascript" src="include/javascript/jquery/js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="include/javascript/jquery/js/jquery-ui-1.8.11.custom.min.js"></script>
<script type="text/javascript" src="include/javascript/sugarcrm.js"></script>
{literal}
<script type="text/javascript">
    sugar.accessToUserReport = '{/literal}{$accessToUserReport}{literal}';
    $(document).ready(function(){
       $('.dateActivities').datepicker({
           defaultDate: '+1m',
           changeMonth: true,
           changeYear: true,
           dateFormat: 'yy-mm-dd',
           showOn: "both",
           buttonImage: "include/javascript/jquery/css/ui-lightness/images/calendar.gif"
       });
       if(sugar.accessToUserReport != ""){
            sugar.runToggleTable();
       }else{
           $('table.mainRow tbody').css('display', 'none');
       }
    });
</script>
{/literal}
<div id="filter">
    <form action="" method="POST">
    <table>
        <tr>
            <td>{$modStrings.LBL_DATE_FROM}</td>
            <td><input class="dateActivities" type="text" id="from" name="from" value="{$from}"/></td>
            <td>{$modStrings.LBL_DATE_TO}</td>
            <td><input class="dateActivities" type="text" id="to" name="to" value="{$to}"/></td>
            {if $displayReportsType}
            <td>{$modStrings.LBL_REPORT}</td>
            <td>
                <select id="activityTyp" name="activityType">
                    <option value="city"{if $type == 'city'} selected="selected"{/if}>&nbsp;{$modStrings.LBL_CITIES}&nbsp;</option>
                    <option value="service" {if $type == 'service'} selected="selected"{/if}>&nbsp;{$modStrings.LBL_SERVICES}&nbsp;</option>
                </select>
            </td>
            {/if}
            <td><input type="submit" id="submit" name="submit" value="Wyświetl"/></td>
        </tr>
    </table>
    </form>
</div>